<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>缓存管理列表</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
	<script type="text/javascript" src="<%=path %>/js/sysmgr/cachemgr/CacheList.js"></script>
  </head>
  <body>
  		<div class="listpage-locked-content">
			<h2 class="listpage-lk-title" >缓存管理</h2>
			<div class="listpage-lk-search" id="searchWrap" ></div>
			<div class="listpage-lk-tbar" id="tbarWrap"></div>
		</div>
		
		<div class="listpage-content">
			<div class="listpage-grid" id="gridWrap"></div>
		</div>
		
  </body>
</html>

<ui:page>

	<ui:toolbar  renderTo="tbarWrap" >
	<x:items>
	<ui:button text="清除缓存" handler="CacheList.clearCache" iconCls="recacl-store" ></ui:button>
	</x:items>
	</ui:toolbar>
	<ui:quicksearch handler="CacheList.quickSearch" scope="CacheList" renderTo="searchWrap"></ui:quicksearch>
	
	
  	<ui:model name="CacheGridModel">
  		 <x:attr name="fields" type="array">
  			<ui:model.field name="name"   ></ui:model.field>
  			<ui:model.field name="count"   ></ui:model.field>
  			<ui:model.field name="cacheHits"   ></ui:model.field>
  			<ui:model.field name="memSize"  ></ui:model.field>
  			<ui:model.field name="diskSize"  ></ui:model.field>
  			<ui:model.field name="totalSize"  ></ui:model.field>
  			<ui:model.field name="avgGetTime"  ></ui:model.field>
  		</x:attr>
  	</ui:model>
	
	
	
	<ui:grid id="cacheGrid" showCheckbox="true" singleSelect="true"
		datasetName="CacheDataSetHandler" 
		handlerName="CacheQueryHandler" 
		model="CacheGridModel" renderTo="gridWrap"  >
		<x:columns>
			<ui:gridcolumn text="缓存名称" dataIndex="name"/>
			<ui:gridcolumn text="个数" dataIndex="count"/>
			<ui:gridcolumn text="命中次数" dataIndex="cacheHits"/>
			<ui:gridcolumn text="内存大小" dataIndex="memSize"/>
			<ui:gridcolumn text="硬盘大小" dataIndex="diskSize" />
			<ui:gridcolumn text="总大小" dataIndex="totalSize"   />
			<ui:gridcolumn text="平均获得时间" dataIndex="avgGetTime" />
		</x:columns>
	</ui:grid>
</ui:page>

	
